package com.endpoint.swagger2.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "商品实体类")
public class Item {

    @ApiModelProperty(value = "商品id",example = "1",required = true)
    private  long id;
    @ApiModelProperty(value = "商品标题",example = "华为P40Pro麒麟990",required = true)
    private  String title;
    @ApiModelProperty(value = "商品卖点",example = "5000万超感知徕卡四摄；50倍数字变焦",required = false)
    private  String sellPoint;
    @ApiModelProperty(value = "库存数量",example = "999",required = false)
    private  int num;
    @ApiModelProperty(value = "商品状态",example = "1",required = true,notes = "1 正常 2下架 3 删除" )
    private  int status;
    @ApiModelProperty(value = "创建时间",example = "2020-12-20 12:10:10",required = true)
    private Date created;
}